package com.core.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @author 刘玉贵
 * @version 666
 */

@Configuration
public class SpringMvcSupport extends WebMvcConfigurationSupport {
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/reservation_page/**").addResourceLocations("/reservation_page/");
        registry.addResourceHandler("/reservation_page/css/**").addResourceLocations("/reservation_page/css/");
        registry.addResourceHandler("/reservation_page/js/**").addResourceLocations("/reservation_page/js/");
        registry.addResourceHandler("/reservation_page/photo/**").addResourceLocations("/reservation_page/photo/");
        registry.addResourceHandler("/usermanagement_page/**").addResourceLocations("/usermanagement_page/");
    }
}
